home *** CD-ROM | disk | FTP | other *** search
- define S_WHITE1024 5
- #define S_WHITE2048 6
- #define S_WHITEVOICE 7
-
- int WINAPI WaitSoundState(int);
-
- /* WaitSoundState() constants */
- #define S_QUEUEEMPTY 0
- #define S_THRESHOLD 1
- #define S_ALLTHRESHOLD 2
-
- int WINAPI SyncAllVoices(void);
- int WINAPI CountVoiceNotes(int);
-
- /* Accent Modes */
- #define S_NORMAL 0
- #define S_LEGATO 1
- #define S_STACCATO 2
-
- /* Error return values */
- #define S_SERDVNA (-1)
- #define S_SEROFM (-2)
- #define S_SERMACT (-3)
- #define S_SERQFUL (-4)
- #define S_SERBDNT (-5)
- #define S_SERDLN (-6)
- #define S_SERDCC (-7)
- #define S_SERDTP (-8)
- #define S_SERDVL (-9)
- #define S_SERDMD (-10)
- #define S_SERDSH (-11)
- #define S_SERDPT (-12)
- #define S_SERDFQ (-13)
- #define S_SERDDR (-14)
- #define S_SERDSR (-15)
- #define S_SERDST (-16)
-
- #endif /* NOSOUND */
-
- /****** Comm support ******************************************************/
-
- #ifndef NOCOMM
-
- #define NOPARITY 0
- #define ODDPARITY 1
- #define EVENPARITY 2
- #define MARKPARITY 3
- #define SPACEPARITY 4
-
- #define ONESTOPBIT 0
- #define ONE5STOPBITS 1
- #define TWOSTOPBITS 2
-
- #define IGNORE 0
- #define INFINITE 0xFFFF
-
- /* Error Flags */
- #define CE_RXOVER 0x0001
- #define CE_OVERRUN 0x0002
- #define CE_RXPARITY 0x0004
- #define CE_FRAME 0x0008
- #define CE_BREAK 0x0010
- #define CE_CTSTO 0x0020
- #define CE_DSRTO 0x0040
- #define CE_RLSDTO 0x0080
- #define CE_TXFULL 0x0100
- #define CE_PTO 0x0200
- #define CE_IOE 0x0400
- #define CE_DNS 0x0800
- #define CE_OOP 0x1000
- #define CE_MODE 0x8000
-
- #define IE_BADID (-1)
- #define IE_OPEN (-2)
- #define IE_NOPEN (-3)
- #define IE_MEMORY (-4)
- #define IE_DEFAULT (-5)
- #define IE_HARDWARE (-10)
- #define IE_BYTESIZE (-11)
- #define IE_BAUDRATE (-12)
-
- /* Events */
- #define EV_RXCHAR 0x0001
- #define EV_RXFLAG 0x0002
- #define EV_TXEMPTY 0x0004
- #define EV_CTS 0x0008
- #define EV_DSR 0x0010
- #define EV_RLSD 0x0020
- #define EV_BREAK 0x0040
- #define EV_ERR 0x0080
- #define EV_RING 0x0100
- #define EV_PERR 0x0200
- #define EV_CTSS 0x0400
- #define EV_DSRS 0x0800
- #define EV_RLSDS 0x1000
- #define EV_RingTe 0x2000
- #define EV_RINGTE EV_RingTe
-
- /* Escape Functions */
- #define SETXOFF 1
- #define SETXON 2
- #define SETRTS 3
- #define CLRRTS 4
- #define SETDTR 5
- #define CLRDTR 6
- #define RESETDEV 7
-
- #define LPTx 0x80
-
- #if (WINVER >= 0x030a)
-
- /* new escape functions */
- #define GETMAXLPT 8
- #define GETMAXCOM 9
- #define GETBASEIRQ 10
-
- /* Comm Baud Rate indices */
- #define CBR_110 0xFF10
- #define CBR_300 0xFF11
- #define CBR_600 0xFF12
- #define CBR_1200 0xFF13
- #define CBR_2400 0xFF14
- #define CBR_4800 0xFF15
- #define CBR_9600 0xFF16
- #define CBR_14400 0xFF17
- #define CBR_19200 0xFF18
- #define CBR_38400 0xFF1B
- #define CBR_56000 0xFF1F
- #define CBR_128000 0xFF23
- #define CBR_256000 0xFF27
-
- /* notifications passed in low word of lParam on WM_COMMNOTIFY messages */
- #define CN_RECEIVE 0x0001
- #define CN_TRANSMIT 0x0002
- #define CN_EVENT 0x0004
-
- #endif /* WINVER >= 0x030a */
-
- typedef struct tagDCB
- {
- BYTE Id;
- UINT BaudRate;
- BYTE ByteSize;
- BYTE Parity;
- BYTE StopBits;
- UINT RlsTimeout;
- UINT CtsTimeout;
- UINT DsrTimeout;
-
- UINT fBinary :1;
- UINT fRtsDisable :1;
- UINT fParity :1;
- UINT fOutxCtsFlow :1;
- UINT fOutxDsrFlow :1;
- UINT fDummy :2;
- UINT fDtrDisable :1;
-
- UINT fOutX :1;
- UINT fInX :1;
- UINT fPeChar :1;
- UINT fNull :1;
- UINT fChEvt :1;
- UINT fDtrflow :1;
- UINT fRtsflow :1;
- UINT fDummy2 :1;
-
- char XonChar;
- char XoffChar;
- UINT XonLim;
- UINT XoffLim;
- char PeChar;
- char EofChar;
- char EvtChar;
- UINT TxDelay;
- } DCB;
- typedef DCB FAR* LPDCB;
-
- #if (defined(STRICT) | (WINVER >= 0x030a))
-
- typedef struct tagCOMSTAT
- {
- BYTE status;
- UINT cbInQue;
- UINT cbOutQue;
- } COMSTAT;
-
- #define CSTF_CTSHOLD 0x01
- #define CSTF_DSRHOLD 0x02
- #define CSTF_RLSDHOLD 0x04
- #define CSTF_XOFFHOLD 0x08
- #define CSTF_XOFFSENT 0x10
- #define CSTF_EOF 0x20
- #define CSTF_TXIM 0x40
-
- #else /* (STRICT | WINVER >= 0x030a) */
-
- /* NOTE: This structure declaration is not ANSI compatible! */
- typedef struct tagCOMSTAT
- {
- BYTE fCtsHold :1;
- BYTE fDsrHold :1;
- BYTE fRlsdHold :1;
- BYTE fXoffHold :1;
- BYTE fXoffSent :1;
- BYTE fEof :1;
- BYTE fTxim :1;
- UINT cbInQue;
- UINT cbOutQue;
- } COMSTAT;
-
- #endif /* !(STRICT | WINVER >= 0x030a */
-
- int WINAPI BuildCommDCB(LPCSTR, DCB FAR*);
-
- int WINAPI OpenComm(LPCSTR, UINT, UINT);
- int WINAPI CloseComm(int);
-
- int WINAPI ReadComm(int, void FAR*, int);
- int WINAPI WriteComm(int, const void FAR*, int);
- int WINAPI UngetCommChar(int, char);
- int WINAPI FlushComm(int, int);
- int WINAPI TransmitCommChar(int, char);
-
- int WINAPI SetCommState(const DCB FAR*);
- int WINAPI GetCommState(int, DCB FAR*);
- int WINAPI GetCommError(int, COMSTAT FAR* );
-
- int WINAPI SetCommBreak(int);
- int WINAPI ClearCommBreak(int);
-
- UINT FAR* WINAPI SetCommEventMask(int, UINT);
- UINT WINAPI GetCommEventMask(int, int);
-
- LONG WINAPI EscapeCommFunction(int, int);
-
- #if (WINVER >= 0x030a)
- BOOL WINAPI EnableCommNotification(int, HWND, int, int);
-
- #endif /* WINVER >= 0x030a */
-
- #endif /* NOCOMM */
-
- /****** String formatting support *******************************************/
-
- int WINAPI wvsprintf(LPSTR lpszOut, LPCSTR lpszFmt, const void FAR* lpParams);
-
- int FAR CDECL wsprintf(LPSTR lpszOut, LPCSTR lpszFmt, ...);
-
-
- /****** Driver support ******************************************************/
-
- #if (WINVER >= 0x030a)
-
- #ifndef NODRIVERS
-
- DECLARE_HANDLE(HDRVR);
-
- typedef LRESULT (CALLBACK* DRIVERPROC)(DWORD, HDRVR, UINT, LPARAM, LPARAM);
-
- /* Driver messages */
- #define DRV_LOAD 0x0001
- #define DRV_ENABLE 0x0002
- #define DRV_OPEN 0x0003
- #define DRV_CLOSE 0x0004
- #define DRV_DISABLE 0x0005
- #define DRV_FREE 0x0006
- #define DRV_CONFIGURE 0x0007
- #define DRV_QUERYCONFIGURE 0x0008
- #define DRV_INSTALL 0x0009
- #define DRV_REMOVE 0x000A
- #define DRV_EXITSESSION 0x000B
- #define DRV_EXITAPPLICATION 0x000C
- #define DRV_POWER 0x000F
- #define DRV_NOTIFYMSG 0x0010
- /*#define DRV_QUERYENDSESSION 0x0010 */
- /*#define DRV_EXITSESSIONCANCELLED 0x0011 */
-
- #define DRV_RESERVED 0x0800
- #define DRV_USER 0x4000
-
- /* LPARAM of DRV_CONFIGURE message */
- typedef struct tagDRVCONFIGINFO
- {
- DWORD dwDCISize;
- LPCSTR lpszDCISectionName;
- LPCSTR lpszDCIAliasName;
- } DRVCONFIGINFO;
- typedef DRVCONFIGINFO NEAR* PDRVCONFIGINFO;
- typedef DRVCONFIGINFO FAR* LPDRVCONFIGINFO;
-
- /* Supported return values for DRV_CONFIGURE message */
- #define DRVCNF_CANCEL 0x0000
- #define DRVCNF_OK 0x0001
- #define DRVCNF_RESTART 0x0002
-
- /* Supported lParam1 of DRV_EXITAPPLICATION notification */
- #define DRVEA_NORMALEXIT 0x0001
- #define DRVEA_ABNORMALEXIT 0x0002
-
- LRESULT WINAPI DefDriverProc(DWORD dwDriverIdentifier, HDRVR driverID, UINT message, LPARAM lParam1, LPARAM lParam2);
-
- HDRVR WINAPI OpenDriver(LPCSTR szDriverName, LPCSTR szSectionName, LPARAM lParam2);
- LRESULT WINAPI CloseDriver(HDRVR hDriver, LPARAM lParam1, LPARAM lParam2);
-
- LRESULT WINAPI SendDriverMessage(HDRVR hDriver, UINT message, LPARAM lParam1, LPARAM lParam2);
-
- HINSTANCE WINAPI GetDriverModuleHandle(HDRVR hDriver);
-
- HDRVR WINAPI GetNextDriver(HDRVR, DWORD);
-
- /* GetNextDriver flags */
- #define GND_FIRSTINSTANCEONLY 0x00000001
-
- #define GND_FORWARD 0x00000000
- #define GND_REVERSE 0x00000002
-
- typedef struct tagDRIVERINFOSTRUCT
- {
- UINT length;
- HDRVR hDriver;
- HINSTANCE hModule;
- char szAliasName[128];
- } DRIVERINFOSTRUCT;
- typedef DRIVERINFOSTRUCT FAR* LPDRIVERINFOSTRUCT;
-
- BOOL WINAPI GetDriverInfo(HDRVR, DRIVERINFOSTRUCT FAR*);
-
- #endif /* !NODRIVERS */
- #endif /* WINVER >= 0x030a */
- #endif /* NOUSER */
-
- #ifndef RC_INVOKED
- #pragma pack() /* Revert to default packing */
- #endif /* RC_INVOKED */
-
- #ifdef __cplusplus
- } /* End of extern "C" { */
- #endif /* __cplusplus */
-
- #endif /* _INC_WINDOWS */
- :, Xr á╦ ╣ v O Φ■ ( t╦ ╚╦ ╕ v <c$╚ 0 / Öµ( á╦ ╠ ïî[H u / return TRUE;■ 4 ( ╚╦ 0╠ ╕ t ) ■ ( ╠ X╠ ╕ u OΓ( 0╠ Σ═ ╖ u σ:\c 0 / " 0 #define pdd ((LPDELETEITEMSTRUCT)lParam)( îu ═ 0 #define pdi ((LPDRAWITEMSTRUCT)lParam)Qz( ░╠ d═ 4 #define pmi ((LPMEASUREITEMSTRUC